<?php

class NumericRule extends Rule {

    public function validate($ValueToValidate) {
        return empty($ValueToValidate) || Validation::Number($ValueToValidate);
    }

    public function getMessage() {
        return 'O Campo "' . $this->FieldName . '" deve conter apenas números!';
    }

}

?>
